package com.nodecollege.cloud.common;

/**
 * @author LC
 * @date 2019/12/1 19:45
 */
public class UpmsConstants {

    /**
     * 管理员登陆失败次数 账号：时间
     */
    public static final String ADMIN_LOGIN_FAIL_NUM = "admin:login:loginFailNum:";
    /**
     * 管理员登陆信息 token：UpmsAdmin
     */
    public static final String ADMIN_LOGIN_INFO = "admin:login:info:";
    /**
     * 用户登陆失败次数 账号：时间
     */
    public static final String USER_LOGIN_FAIL_NUM = "user:login:loginFailNum:";
    /**
     * 用户登陆信息 token: UpmsUser
     */
    public static final String USER_LOGIN_INFO = "user:login:info:";
    /**
     * redis用户信息键
     */
    public static final String REDIS_USER_INFO = "upms:user:info:";
    /**
     * HEADER_ACCESS_TOKEN
     */
    public static final String HEADER_ACCESS_TOKEN = "upms-access-token";
    /**
     * 访问来源
     */
    public static final String HEADER_ACCESS_SOURCE = "nc-access-source";
    /**
     * 访问来源-nginx
     */
    public static final String ACCESS_SOURCE_NGINX = "nc-nginx";
    /**
     * 管理员token
     */
    public static final String HEADER_ACCESS_TOKEN_ADMIN = "upms-access-token-admin";
    /**
     * 用户信息随机值
     */
    public static final String HEADER_INFO_RANDOM = "upms-info-random";
    /**
     * 管理员用户随机值
     */
    public static final String HEADER_INFO_RANDOM_ADMIN = "upms-info-random-admin";
    /**
     * 新用户默认组织机构代码
     */
    public static final String NEW_MEMBER_DEFALUT_ORG = "newMemberDefaultOrg";
    /**
     * 新用户默认角色代码
     */
    public static final String NEW_MEMBER_DEFALUT_ROLE = "newMemberDefaultRole";
    /**
     * 正常的api
     */
    public final static Integer API_NORMAL = 1;
    /**
     * 待删除的api
     */
    public final static Integer API_TO_BE_DELETED = 2;
    /**
     * api删除标志
     */
    public final static Integer API_DELETE = -1;
    /**
     * 租户默认开通应用
     */
    public final static String DEFAULT_APPS = "DEFAULT_APPS";
    /**
     * 租户管理员默认角色
     */
    public final static String DEFAULT_ROLES = "DEFAULT_ROLES";
    /**
     * 租户默认开通菜单
     */
    public final static String DEFAULT_MENUS = "DEFAULT_MENUS";
}
